/*
 * @Author: liaoxing
 * @Date: 2021-08-09 14:32:13
 * @LastEditors: liaoxing
 * @LastEditTime: 2021-08-21 11:35:19
 * @Description: file content
 * @FilePath: \数据中心\src\main.js
 */
// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import i18n from './locales'
import { VueAxios } from './utils/request'
import * as util from  './utils/util'
import ProLayout, { PageHeaderWrapper } from '@ant-design-vue/pro-layout'
import themePluginConfig from '../config/themePluginConfig'
import './style/iconfonts.css'
// mock
// WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
import './mock'

import bootstrap from './core/bootstrap'
import './core/lazy_use' // use lazy load components
import './permission' // permission control
import './utils/filter' // global filter
import './global.less' // global style
import Antd from 'ant-design-vue'
// import 'ant-design-vue/dist/antd.less';  // or 'ant-design-vue/dist/antd.less'


import _ from 'lodash'
window._ = _
Vue.prototype._ = _
Vue.prototype.util = util
Vue.config.productionTip = false

// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios)
// use pro-layout components
Vue.component('pro-layout', ProLayout)
Vue.component('page-container', PageHeaderWrapper)
Vue.component('page-header-wrapper', PageHeaderWrapper)

import './custom-component/index'

window.umi_plugin_ant_themeVar = themePluginConfig.theme

/* 全局数组，收入屏幕变化需要执行的回调 */
window.onresizeArr = []

import VueDirectiveImagePreviewer from 'vue-directive-image-previewer'
import 'vue-directive-image-previewer/dist/assets/style.css'
Vue.use(VueDirectiveImagePreviewer)
import VideoPlayer from 'vue-video-player'
 Vue.use(VideoPlayer);



//富文本编辑开始

//富文本编辑结束

new Vue({
  router,
  store,
  i18n,
  // init localstorage, vuex
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
